/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package skipass;

import java.util.UUID;

/**
 *
 * @author andrii
 */
abstract class AbstractPass implements Pass {

    protected boolean isValid = false;
    private final long passID = UUID.randomUUID().getLeastSignificantBits();

    @Override
    public long getID() {
        return passID;
    }

    @Override
    public boolean isValid() {
        return isValid;
    }

    @Override
    public boolean validate(){
        return isValid();
    }

}
